package com.hsd.whb.service;

import com.hsd.whb.entity.Device;
import com.hsd.whb.pojo.output.DeviceVO;
import com.hsd.whb.pojo.query.QueryDevice;
import com.wangjiacai.hqlQuery.service.BaseService;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface DeviceService extends BaseService {

    Device updateDevice(Device device);

    Device bindingDevice(Device device, String managerName);

    Device findDeviceById(Integer id);

    Device findDeviceByAccessKey(String accessKey);

    void deleteDeviceById(Integer id);

    List<DeviceVO> findDeviceByManagerId(Integer managerId);

    long findDeviceListTotalPages(String username, Device device);

    List<Device> findDeviceList(Pageable pageable, String username, Device device);

    long findAllDeviceListTotalPages(QueryDevice queryDevice);

    List<Device> findAllDeviceList(Pageable pageable, QueryDevice queryDevice);
}
